<!-- HTML header for doxygen 1.8.6-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<title>OpenCV: cv::ogl::Texture2D Class Reference</title>
<link href="../../opencv.ico" rel="shortcut icon" type="image/x-icon" />
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../tutorial-utils.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
//<![CDATA[
MathJax.Hub.Config(
{
  TeX: {
      Macros: {
          matTT: [ "\\[ \\left|\\begin{array}{ccc} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{array}\\right| \\]", 9],
          fork: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ \\end{array} \\right.", 4],
          forkthree: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ \\end{array} \\right.", 6],
          forkfour: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ #7 & \\mbox{#8}\\\\ \\end{array} \\right.", 8],
          vecthree: ["\\begin{bmatrix} #1\\\\ #2\\\\ #3 \\end{bmatrix}", 3],
          vecthreethree: ["\\begin{bmatrix} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{bmatrix}", 9],
          cameramatrix: ["#1 = \\begin{bmatrix} f_x & 0 & c_x\\\\ 0 & f_y & c_y\\\\ 0 & 0 & 1 \\end{bmatrix}", 1],
          distcoeffs: ["(k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6 [, s_1, s_2, s_3, s_4[, \\tau_x, \\tau_y]]]]) \\text{ of 4, 5, 8, 12 or 14 elements}"],
          distcoeffsfisheye: ["(k_1, k_2, k_3, k_4)"],
          hdotsfor: ["\\dots", 1],
          mathbbm: ["\\mathbb{#1}", 1],
          bordermatrix: ["\\matrix{#1}", 1]
      }
  }
}
);
//]]>
</script><script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
<link href="../../stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<!--#include virtual="/google-search.html"-->
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../opencv-logo-small.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">OpenCV
   &#160;<span id="projectnumber">4.5.2</span>
   </div>
   <div id="projectbrief">Open Source Computer Vision</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../d2/d75/namespacecv.html">cv</a></li><li class="navelem"><a class="el" href="../../df/d60/namespacecv_1_1ogl.html">ogl</a></li><li class="navelem"><a class="el" href="../../d5/ddf/classcv_1_1ogl_1_1Texture2D.html">Texture2D</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="../../dc/dbf/classcv_1_1ogl_1_1Texture2D-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">cv::ogl::Texture2D Class Reference<div class="ingroups"><a class="el" href="../../d0/de1/group__core.html">Core functionality</a> &raquo; <a class="el" href="../../d2/d3c/group__core__opengl.html">OpenGL interoperability</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>Smart pointer for OpenGL 2D texture memory with reference counting.  
 <a href="../../d5/ddf/classcv_1_1ogl_1_1Texture2D.html#details">More...</a></p>

<p><code>#include &lt;opencv2/core/opengl.hpp&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a1838399ee67c0957c0ae42cabfa99033"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/ddf/classcv_1_1ogl_1_1Texture2D.html#a1838399ee67c0957c0ae42cabfa99033">Format</a> { <br />
&#160;&#160;<a class="el" href="../../d5/ddf/classcv_1_1ogl_1_1Texture2D.html#a1838399ee67c0957c0ae42cabfa99033aa3aa1dfcdc14255c12d84f9a932493b9">NONE</a> = 0, 
<br />
&#160;&#160;<a class="el" href="../../d5/ddf/classcv_1_1ogl_1_1Texture2D.html#a1838399ee67c0957c0ae42cabfa99033ad97d2f204bb7e38b03b74ea3a8129cdb">DEPTH_COMPONENT</a> = 0x1902, 
<br />
&#160;&#160;<a class="el" href="../../d5/ddf/classcv_1_1ogl_1_1Texture2D.html#a1838399ee67c0957c0ae42cabfa99033a1c819f641291e88d67ab432f67023a17">RGB</a> = 0x1907, 
<br />
&#160;&#160;<a class="el" href="../../d5/ddf/classcv_1_1ogl_1_1Texture2D.html#a1838399ee67c0957c0ae42cabfa99033ab30fb919ec618eaa81c28235e568ef20">RGBA</a> = 0x1908
<br />
 }<tr class="memdesc:a1838399ee67c0957c0ae42cabfa99033"><td class="mdescLeft">&#160;</td><td class="mdescRight">An Image Format describes the way that the images in Textures store their data.  <a href="../../d5/ddf/classcv_1_1ogl_1_1Texture2D.html#a1838399ee67c0957c0ae42cabfa99033">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:a1838399ee67c0957c0ae42cabfa99033"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a5e559b20ea593302282f98bcd1cf784d"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/ddf/classcv_1_1ogl_1_1Texture2D.html#a5e559b20ea593302282f98bcd1cf784d">Texture2D</a> ()</td></tr>
<tr class="memdesc:a5e559b20ea593302282f98bcd1cf784d"><td class="mdescLeft">&#160;</td><td class="mdescRight">The constructors.  <a href="#a5e559b20ea593302282f98bcd1cf784d">More...</a><br /></td></tr>
<tr class="separator:a5e559b20ea593302282f98bcd1cf784d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a01f15a77aed589e236041f8da8beb73a"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/ddf/classcv_1_1ogl_1_1Texture2D.html#a01f15a77aed589e236041f8da8beb73a">Texture2D</a> (int arows, int acols, <a class="el" href="../../d5/ddf/classcv_1_1ogl_1_1Texture2D.html#a1838399ee67c0957c0ae42cabfa99033">Format</a> aformat, unsigned int atexId, bool autoRelease=false)</td></tr>
<tr class="separator:a01f15a77aed589e236041f8da8beb73a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a43a07435a33f245f7b2592a86e162490"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/ddf/classcv_1_1ogl_1_1Texture2D.html#a43a07435a33f245f7b2592a86e162490">Texture2D</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga346f563897249351a34549137c8532a0">Size</a> asize, <a class="el" href="../../d5/ddf/classcv_1_1ogl_1_1Texture2D.html#a1838399ee67c0957c0ae42cabfa99033">Format</a> aformat, unsigned int atexId, bool autoRelease=false)</td></tr>
<tr class="separator:a43a07435a33f245f7b2592a86e162490"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1d68da272ef5e37ca21cf7f7d23c9e5f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/ddf/classcv_1_1ogl_1_1Texture2D.html#a1d68da272ef5e37ca21cf7f7d23c9e5f">Texture2D</a> (int arows, int acols, <a class="el" href="../../d5/ddf/classcv_1_1ogl_1_1Texture2D.html#a1838399ee67c0957c0ae42cabfa99033">Format</a> aformat, bool autoRelease=false)</td></tr>
<tr class="separator:a1d68da272ef5e37ca21cf7f7d23c9e5f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3c8da810e19d71c0b2151e3f46a32068"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/ddf/classcv_1_1ogl_1_1Texture2D.html#a3c8da810e19d71c0b2151e3f46a32068">Texture2D</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga346f563897249351a34549137c8532a0">Size</a> asize, <a class="el" href="../../d5/ddf/classcv_1_1ogl_1_1Texture2D.html#a1838399ee67c0957c0ae42cabfa99033">Format</a> aformat, bool autoRelease=false)</td></tr>
<tr class="separator:a3c8da810e19d71c0b2151e3f46a32068"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a58cbe6f80d2c8eb52505fad86abf1422"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/ddf/classcv_1_1ogl_1_1Texture2D.html#a58cbe6f80d2c8eb52505fad86abf1422">Texture2D</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> arr, bool autoRelease=false)</td></tr>
<tr class="separator:a58cbe6f80d2c8eb52505fad86abf1422"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9834b1c4ed0211408f006896e05da05c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/ddf/classcv_1_1ogl_1_1Texture2D.html#a9834b1c4ed0211408f006896e05da05c">bind</a> () const</td></tr>
<tr class="memdesc:a9834b1c4ed0211408f006896e05da05c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Binds texture to current active texture unit for GL_TEXTURE_2D target.  <a href="#a9834b1c4ed0211408f006896e05da05c">More...</a><br /></td></tr>
<tr class="separator:a9834b1c4ed0211408f006896e05da05c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a125aad6e3dfbc590e12b21c856282003"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/ddf/classcv_1_1ogl_1_1Texture2D.html#a125aad6e3dfbc590e12b21c856282003">cols</a> () const</td></tr>
<tr class="separator:a125aad6e3dfbc590e12b21c856282003"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab245ff921eb30efd321afc65e12960ec"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/ddf/classcv_1_1ogl_1_1Texture2D.html#ab245ff921eb30efd321afc65e12960ec">copyFrom</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> arr, bool autoRelease=false)</td></tr>
<tr class="memdesc:ab245ff921eb30efd321afc65e12960ec"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copies from host/device memory to OpenGL texture.  <a href="#ab245ff921eb30efd321afc65e12960ec">More...</a><br /></td></tr>
<tr class="separator:ab245ff921eb30efd321afc65e12960ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1fbf47dc67b22fccbef45c20caba947e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/ddf/classcv_1_1ogl_1_1Texture2D.html#a1fbf47dc67b22fccbef45c20caba947e">copyTo</a> (<a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> arr, int ddepth=<a class="el" href="../../d1/d1b/group__core__hal__interface.html#ga4a3def5d72b74bed31f5f8ab7676099c">CV_32F</a>, bool autoRelease=false) const</td></tr>
<tr class="memdesc:a1fbf47dc67b22fccbef45c20caba947e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copies from OpenGL texture to host/device memory or another OpenGL texture object.  <a href="#a1fbf47dc67b22fccbef45c20caba947e">More...</a><br /></td></tr>
<tr class="separator:a1fbf47dc67b22fccbef45c20caba947e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a44434d109746820cd8b3b14364dedd31"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/ddf/classcv_1_1ogl_1_1Texture2D.html#a44434d109746820cd8b3b14364dedd31">create</a> (int arows, int acols, <a class="el" href="../../d5/ddf/classcv_1_1ogl_1_1Texture2D.html#a1838399ee67c0957c0ae42cabfa99033">Format</a> aformat, bool autoRelease=false)</td></tr>
<tr class="memdesc:a44434d109746820cd8b3b14364dedd31"><td class="mdescLeft">&#160;</td><td class="mdescRight">Allocates memory for <a class="el" href="../../d5/ddf/classcv_1_1ogl_1_1Texture2D.html" title="Smart pointer for OpenGL 2D texture memory with reference counting. ">ogl::Texture2D</a> object.  <a href="#a44434d109746820cd8b3b14364dedd31">More...</a><br /></td></tr>
<tr class="separator:a44434d109746820cd8b3b14364dedd31"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af9270d0d351251d3006a6e6a8dd01964"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/ddf/classcv_1_1ogl_1_1Texture2D.html#af9270d0d351251d3006a6e6a8dd01964">create</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga346f563897249351a34549137c8532a0">Size</a> asize, <a class="el" href="../../d5/ddf/classcv_1_1ogl_1_1Texture2D.html#a1838399ee67c0957c0ae42cabfa99033">Format</a> aformat, bool autoRelease=false)</td></tr>
<tr class="separator:af9270d0d351251d3006a6e6a8dd01964"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac8ce3d2a82f71ddf351c0d96b7e7e679"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/ddf/classcv_1_1ogl_1_1Texture2D.html#ac8ce3d2a82f71ddf351c0d96b7e7e679">empty</a> () const</td></tr>
<tr class="separator:ac8ce3d2a82f71ddf351c0d96b7e7e679"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a99d34ec6c0656c850cb8ed2280453879"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d5/ddf/classcv_1_1ogl_1_1Texture2D.html#a1838399ee67c0957c0ae42cabfa99033">Format</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/ddf/classcv_1_1ogl_1_1Texture2D.html#a99d34ec6c0656c850cb8ed2280453879">format</a> () const</td></tr>
<tr class="separator:a99d34ec6c0656c850cb8ed2280453879"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a91376169e9cf05898fdecc025a8cbb4c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/ddf/classcv_1_1ogl_1_1Texture2D.html#a91376169e9cf05898fdecc025a8cbb4c">release</a> ()</td></tr>
<tr class="memdesc:a91376169e9cf05898fdecc025a8cbb4c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Decrements the reference counter and destroys the texture object if needed.  <a href="#a91376169e9cf05898fdecc025a8cbb4c">More...</a><br /></td></tr>
<tr class="separator:a91376169e9cf05898fdecc025a8cbb4c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae60d7d5fbccd9a946b741ac8c4a4d00f"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/ddf/classcv_1_1ogl_1_1Texture2D.html#ae60d7d5fbccd9a946b741ac8c4a4d00f">rows</a> () const</td></tr>
<tr class="separator:ae60d7d5fbccd9a946b741ac8c4a4d00f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ace1fa264dc4a294bc26d2d074217cb4d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/ddf/classcv_1_1ogl_1_1Texture2D.html#ace1fa264dc4a294bc26d2d074217cb4d">setAutoRelease</a> (bool flag)</td></tr>
<tr class="memdesc:ace1fa264dc4a294bc26d2d074217cb4d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets auto release mode.  <a href="#ace1fa264dc4a294bc26d2d074217cb4d">More...</a><br /></td></tr>
<tr class="separator:ace1fa264dc4a294bc26d2d074217cb4d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a65f84b8b7f310fa80d6ca0e1e80be492"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../dc/d84/group__core__basic.html#ga346f563897249351a34549137c8532a0">Size</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/ddf/classcv_1_1ogl_1_1Texture2D.html#a65f84b8b7f310fa80d6ca0e1e80be492">size</a> () const</td></tr>
<tr class="separator:a65f84b8b7f310fa80d6ca0e1e80be492"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad13d3a0569c7df67afdbaf6d0f9c11da"><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/ddf/classcv_1_1ogl_1_1Texture2D.html#ad13d3a0569c7df67afdbaf6d0f9c11da">texId</a> () const</td></tr>
<tr class="memdesc:ad13d3a0569c7df67afdbaf6d0f9c11da"><td class="mdescLeft">&#160;</td><td class="mdescRight">get OpenGL opject id  <a href="#ad13d3a0569c7df67afdbaf6d0f9c11da">More...</a><br /></td></tr>
<tr class="separator:ad13d3a0569c7df67afdbaf6d0f9c11da"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Smart pointer for OpenGL 2D texture memory with reference counting. </p>
</div><h2 class="groupheader">Member Enumeration Documentation</h2>
<a id="a1838399ee67c0957c0ae42cabfa99033"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1838399ee67c0957c0ae42cabfa99033">&#9670;&nbsp;</a></span>Format</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="../../d5/ddf/classcv_1_1ogl_1_1Texture2D.html#a1838399ee67c0957c0ae42cabfa99033">cv::ogl::Texture2D::Format</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>An Image Format describes the way that the images in Textures store their data. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a1838399ee67c0957c0ae42cabfa99033aa3aa1dfcdc14255c12d84f9a932493b9"></a>NONE&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a1838399ee67c0957c0ae42cabfa99033ad97d2f204bb7e38b03b74ea3a8129cdb"></a>DEPTH_COMPONENT&#160;</td><td class="fielddoc"><p>Depth. </p>
</td></tr>
<tr><td class="fieldname"><a id="a1838399ee67c0957c0ae42cabfa99033a1c819f641291e88d67ab432f67023a17"></a>RGB&#160;</td><td class="fielddoc"><p>Red, Green, Blue. </p>
</td></tr>
<tr><td class="fieldname"><a id="a1838399ee67c0957c0ae42cabfa99033ab30fb919ec618eaa81c28235e568ef20"></a>RGBA&#160;</td><td class="fielddoc"><p>Red, Green, Blue, Alpha. </p>
</td></tr>
</table>

</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a5e559b20ea593302282f98bcd1cf784d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5e559b20ea593302282f98bcd1cf784d">&#9670;&nbsp;</a></span>Texture2D() <span class="overload">[1/6]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cv::ogl::Texture2D::Texture2D </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The constructors. </p>
<p>Creates empty <a class="el" href="../../d5/ddf/classcv_1_1ogl_1_1Texture2D.html" title="Smart pointer for OpenGL 2D texture memory with reference counting. ">ogl::Texture2D</a> object, allocates memory for <a class="el" href="../../d5/ddf/classcv_1_1ogl_1_1Texture2D.html" title="Smart pointer for OpenGL 2D texture memory with reference counting. ">ogl::Texture2D</a> object or copies from host/device memory. </p>

</div>
</div>
<a id="a01f15a77aed589e236041f8da8beb73a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a01f15a77aed589e236041f8da8beb73a">&#9670;&nbsp;</a></span>Texture2D() <span class="overload">[2/6]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cv::ogl::Texture2D::Texture2D </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>arows</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>acols</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d5/ddf/classcv_1_1ogl_1_1Texture2D.html#a1838399ee67c0957c0ae42cabfa99033">Format</a>&#160;</td>
          <td class="paramname"><em>aformat</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>atexId</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>autoRelease</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p>

</div>
</div>
<a id="a43a07435a33f245f7b2592a86e162490"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a43a07435a33f245f7b2592a86e162490">&#9670;&nbsp;</a></span>Texture2D() <span class="overload">[3/6]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cv::ogl::Texture2D::Texture2D </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga346f563897249351a34549137c8532a0">Size</a>&#160;</td>
          <td class="paramname"><em>asize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d5/ddf/classcv_1_1ogl_1_1Texture2D.html#a1838399ee67c0957c0ae42cabfa99033">Format</a>&#160;</td>
          <td class="paramname"><em>aformat</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>atexId</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>autoRelease</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p>

</div>
</div>
<a id="a1d68da272ef5e37ca21cf7f7d23c9e5f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1d68da272ef5e37ca21cf7f7d23c9e5f">&#9670;&nbsp;</a></span>Texture2D() <span class="overload">[4/6]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cv::ogl::Texture2D::Texture2D </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>arows</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>acols</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d5/ddf/classcv_1_1ogl_1_1Texture2D.html#a1838399ee67c0957c0ae42cabfa99033">Format</a>&#160;</td>
          <td class="paramname"><em>aformat</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>autoRelease</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">arows</td><td>Number of rows. </td></tr>
    <tr><td class="paramname">acols</td><td>Number of columns. </td></tr>
    <tr><td class="paramname">aformat</td><td>Image format. See <a class="el" href="../../d5/ddf/classcv_1_1ogl_1_1Texture2D.html#a1838399ee67c0957c0ae42cabfa99033" title="An Image Format describes the way that the images in Textures store their data. ">cv::ogl::Texture2D::Format</a> . </td></tr>
    <tr><td class="paramname">autoRelease</td><td>Auto release mode (if true, release will be called in object's destructor). </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a3c8da810e19d71c0b2151e3f46a32068"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3c8da810e19d71c0b2151e3f46a32068">&#9670;&nbsp;</a></span>Texture2D() <span class="overload">[5/6]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cv::ogl::Texture2D::Texture2D </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga346f563897249351a34549137c8532a0">Size</a>&#160;</td>
          <td class="paramname"><em>asize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d5/ddf/classcv_1_1ogl_1_1Texture2D.html#a1838399ee67c0957c0ae42cabfa99033">Format</a>&#160;</td>
          <td class="paramname"><em>aformat</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>autoRelease</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">asize</td><td>2D array size. </td></tr>
    <tr><td class="paramname">aformat</td><td>Image format. See <a class="el" href="../../d5/ddf/classcv_1_1ogl_1_1Texture2D.html#a1838399ee67c0957c0ae42cabfa99033" title="An Image Format describes the way that the images in Textures store their data. ">cv::ogl::Texture2D::Format</a> . </td></tr>
    <tr><td class="paramname">autoRelease</td><td>Auto release mode (if true, release will be called in object's destructor). </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a58cbe6f80d2c8eb52505fad86abf1422"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a58cbe6f80d2c8eb52505fad86abf1422">&#9670;&nbsp;</a></span>Texture2D() <span class="overload">[6/6]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">cv::ogl::Texture2D::Texture2D </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a>&#160;</td>
          <td class="paramname"><em>arr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>autoRelease</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">arr</td><td>Input array (host or device memory, it can be <a class="el" href="../../d3/d63/classcv_1_1Mat.html" title="n-dimensional dense array class ">Mat</a> , <a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html" title="Base storage class for GPU memory with reference counting. ">cuda::GpuMat</a> or <a class="el" href="../../d3/d68/classcv_1_1ogl_1_1Buffer.html" title="Smart pointer for OpenGL buffer object with reference counting. ">ogl::Buffer</a> ). </td></tr>
    <tr><td class="paramname">autoRelease</td><td>Auto release mode (if true, release will be called in object's destructor). </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a9834b1c4ed0211408f006896e05da05c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9834b1c4ed0211408f006896e05da05c">&#9670;&nbsp;</a></span>bind()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::ogl::Texture2D::bind </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Binds texture to current active texture unit for GL_TEXTURE_2D target. </p>

</div>
</div>
<a id="a125aad6e3dfbc590e12b21c856282003"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a125aad6e3dfbc590e12b21c856282003">&#9670;&nbsp;</a></span>cols()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int cv::ogl::Texture2D::cols </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="ab245ff921eb30efd321afc65e12960ec"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab245ff921eb30efd321afc65e12960ec">&#9670;&nbsp;</a></span>copyFrom()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::ogl::Texture2D::copyFrom </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a>&#160;</td>
          <td class="paramname"><em>arr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>autoRelease</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Copies from host/device memory to OpenGL texture. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">arr</td><td>Input array (host or device memory, it can be <a class="el" href="../../d3/d63/classcv_1_1Mat.html" title="n-dimensional dense array class ">Mat</a> , <a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html" title="Base storage class for GPU memory with reference counting. ">cuda::GpuMat</a> or <a class="el" href="../../d3/d68/classcv_1_1ogl_1_1Buffer.html" title="Smart pointer for OpenGL buffer object with reference counting. ">ogl::Buffer</a> ). </td></tr>
    <tr><td class="paramname">autoRelease</td><td>Auto release mode (if true, release will be called in object's destructor). </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a1fbf47dc67b22fccbef45c20caba947e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1fbf47dc67b22fccbef45c20caba947e">&#9670;&nbsp;</a></span>copyTo()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::ogl::Texture2D::copyTo </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a>&#160;</td>
          <td class="paramname"><em>arr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>ddepth</em> = <code><a class="el" href="../../d1/d1b/group__core__hal__interface.html#ga4a3def5d72b74bed31f5f8ab7676099c">CV_32F</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>autoRelease</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Copies from OpenGL texture to host/device memory or another OpenGL texture object. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">arr</td><td>Destination array (host or device memory, can be <a class="el" href="../../d3/d63/classcv_1_1Mat.html" title="n-dimensional dense array class ">Mat</a> , <a class="el" href="../../d0/d60/classcv_1_1cuda_1_1GpuMat.html" title="Base storage class for GPU memory with reference counting. ">cuda::GpuMat</a> , <a class="el" href="../../d3/d68/classcv_1_1ogl_1_1Buffer.html" title="Smart pointer for OpenGL buffer object with reference counting. ">ogl::Buffer</a> or <a class="el" href="../../d5/ddf/classcv_1_1ogl_1_1Texture2D.html" title="Smart pointer for OpenGL 2D texture memory with reference counting. ">ogl::Texture2D</a> ). </td></tr>
    <tr><td class="paramname">ddepth</td><td>Destination depth. </td></tr>
    <tr><td class="paramname">autoRelease</td><td>Auto release mode for destination buffer (if arr is OpenGL buffer or texture). </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a44434d109746820cd8b3b14364dedd31"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a44434d109746820cd8b3b14364dedd31">&#9670;&nbsp;</a></span>create() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::ogl::Texture2D::create </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>arows</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>acols</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d5/ddf/classcv_1_1ogl_1_1Texture2D.html#a1838399ee67c0957c0ae42cabfa99033">Format</a>&#160;</td>
          <td class="paramname"><em>aformat</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>autoRelease</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Allocates memory for <a class="el" href="../../d5/ddf/classcv_1_1ogl_1_1Texture2D.html" title="Smart pointer for OpenGL 2D texture memory with reference counting. ">ogl::Texture2D</a> object. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">arows</td><td>Number of rows. </td></tr>
    <tr><td class="paramname">acols</td><td>Number of columns. </td></tr>
    <tr><td class="paramname">aformat</td><td>Image format. See <a class="el" href="../../d5/ddf/classcv_1_1ogl_1_1Texture2D.html#a1838399ee67c0957c0ae42cabfa99033" title="An Image Format describes the way that the images in Textures store their data. ">cv::ogl::Texture2D::Format</a> . </td></tr>
    <tr><td class="paramname">autoRelease</td><td>Auto release mode (if true, release will be called in object's destructor). </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="af9270d0d351251d3006a6e6a8dd01964"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af9270d0d351251d3006a6e6a8dd01964">&#9670;&nbsp;</a></span>create() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::ogl::Texture2D::create </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga346f563897249351a34549137c8532a0">Size</a>&#160;</td>
          <td class="paramname"><em>asize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d5/ddf/classcv_1_1ogl_1_1Texture2D.html#a1838399ee67c0957c0ae42cabfa99033">Format</a>&#160;</td>
          <td class="paramname"><em>aformat</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>autoRelease</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">asize</td><td>2D array size. </td></tr>
    <tr><td class="paramname">aformat</td><td>Image format. See <a class="el" href="../../d5/ddf/classcv_1_1ogl_1_1Texture2D.html#a1838399ee67c0957c0ae42cabfa99033" title="An Image Format describes the way that the images in Textures store their data. ">cv::ogl::Texture2D::Format</a> . </td></tr>
    <tr><td class="paramname">autoRelease</td><td>Auto release mode (if true, release will be called in object's destructor). </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ac8ce3d2a82f71ddf351c0d96b7e7e679"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac8ce3d2a82f71ddf351c0d96b7e7e679">&#9670;&nbsp;</a></span>empty()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool cv::ogl::Texture2D::empty </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a99d34ec6c0656c850cb8ed2280453879"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a99d34ec6c0656c850cb8ed2280453879">&#9670;&nbsp;</a></span>format()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d5/ddf/classcv_1_1ogl_1_1Texture2D.html#a1838399ee67c0957c0ae42cabfa99033">Format</a> cv::ogl::Texture2D::format </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a91376169e9cf05898fdecc025a8cbb4c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a91376169e9cf05898fdecc025a8cbb4c">&#9670;&nbsp;</a></span>release()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::ogl::Texture2D::release </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Decrements the reference counter and destroys the texture object if needed. </p>
<p>The function will call setAutoRelease(true) . </p>

</div>
</div>
<a id="ae60d7d5fbccd9a946b741ac8c4a4d00f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae60d7d5fbccd9a946b741ac8c4a4d00f">&#9670;&nbsp;</a></span>rows()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int cv::ogl::Texture2D::rows </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="ace1fa264dc4a294bc26d2d074217cb4d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ace1fa264dc4a294bc26d2d074217cb4d">&#9670;&nbsp;</a></span>setAutoRelease()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::ogl::Texture2D::setAutoRelease </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>flag</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets auto release mode. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">flag</td><td>Auto release mode (if true, release will be called in object's destructor).</td></tr>
  </table>
  </dd>
</dl>
<p>The lifetime of the OpenGL object is tied to the lifetime of the context. If OpenGL context was bound to a window it could be released at any time (user can close a window). If object's destructor is called after destruction of the context it will cause an error. Thus <a class="el" href="../../d5/ddf/classcv_1_1ogl_1_1Texture2D.html" title="Smart pointer for OpenGL 2D texture memory with reference counting. ">ogl::Texture2D</a> doesn't destroy OpenGL object in destructor by default (all OpenGL resources will be released with OpenGL context). This function can force <a class="el" href="../../d5/ddf/classcv_1_1ogl_1_1Texture2D.html" title="Smart pointer for OpenGL 2D texture memory with reference counting. ">ogl::Texture2D</a> destructor to destroy OpenGL object. </p>

</div>
</div>
<a id="a65f84b8b7f310fa80d6ca0e1e80be492"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a65f84b8b7f310fa80d6ca0e1e80be492">&#9670;&nbsp;</a></span>size()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../dc/d84/group__core__basic.html#ga346f563897249351a34549137c8532a0">Size</a> cv::ogl::Texture2D::size </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="ad13d3a0569c7df67afdbaf6d0f9c11da"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad13d3a0569c7df67afdbaf6d0f9c11da">&#9670;&nbsp;</a></span>texId()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int cv::ogl::Texture2D::texId </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>get OpenGL opject id </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>opencv2/core/<a class="el" href="../../d4/db0/opengl_8hpp.html">opengl.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.6-->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Apr 2 2021 11:36:48 for OpenCV by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
<script type="text/javascript">
//<![CDATA[
addTutorialsButtons();
//]]>
</script>
</body>
</html>
